#include<stdio.h>
#include<unistd.h>

int main()
{
    pid_t id = fork();

    if( id == 0 )
    {
        while(1)
        {
            printf("i am child : %d \n",getpid());
            sleep(2);
        }
    }
    else{
        int cent=5;
        while(cent)
        {
            printf("i am father : %d \n",getpid());
            cent--;
            sleep(2);

        }
    }
    return 0;
}
